<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <center>
        <form action="/myWeb/3" method="get">
            请求参数:<input type="text" name="userName" />
            <input type="submit" value="get方式访问TestServlet" />
        </form>
        <form action="/myWeb/3" method="post">
            请求参数:<input type="text" name="userName" />
            <input type="submit" value="post方式访问TestServlet" />
        </form>
    </center>
</body>
</html>